package com.njh.tools.base.util;


import com.njh.tools.api.manager.RetroUtil;
import com.njh.tools.bean.ResultBean;

import rx.Observable;
import rx.functions.Func1;

/**
 * Created by niejiahuan on 16/8/1.
 */
public class RxFunc1<T extends ResultBean> implements Func1<ResultBean<T>, Observable<?>> {
    @Override
    public Observable<?> call(ResultBean<T> tResultBean) {
        return RetroUtil.flatResult(tResultBean);
    }
}
